<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="马加"/>
<title>注册界面</title>
<link href="Css/register.css" rel="stylesheet" type="text/css" />
</head>


<body>

  <%
String insert = request.getParameter("id");
if(insert!=null)
{
		if(insert.equals("1")){
			out.print("<script>");
			out.print("alert('注册成功！请点击登录去登录页面！');");
			out.print("</script>");
		}else if(insert.equals("0")){
			out.print("<script>");
			out.print("alert('注册失败！');");
			out.print("</script>");
		}
}

%>

<form name="form1" enctype="multipart/form-data" action="doregister.jsp" method="post">
<div id="top"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td height="400px" align="center" valign="middle">
            <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="tableCenter">
                <tr align="center" valign="middle">
                    <td height="398px">
                        <table width="570" border="0" align="center" cellpadding="0" cellspacing="0" class="tableMain">
                            
                                <tr>
                                    <td height="57" colspan="2" align="left" id="tableTop">
                                        &nbsp;&nbsp;&nbsp;欢迎您注册会员，如果您已拥有账户，则在此<a href="login.jsp">登录</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="50" align="right" valign="middle">用&nbsp;户&nbsp;名：</td>
                                    <td width="390" height="50">
                                        <input type="text" name="username" id="textfield"  class="txt"/></td>
                                </tr>
                                <tr>
                                    <td height="50" align="right" valign="middle">设置密码：</td>
                                    <td width="390" height="50">
                                        <input type="password" name="userpass" id="textfield2" class="txt"/></td>
                                </tr>
                                <tr>
                                    <td height="50" align="right" valign="middle">确定密码：</td>
                                    <td width="390" height="50">
                                        <input type="password" name="password" id="textfield3" class="txt"/></td>
                                </tr>
                                <tr>
                                    <td height="50" align="right" valign="middle">手&nbsp;&nbsp;&nbsp;&nbsp;机：</td>
                                    <td width="390" height="50">
                                        <input type="text" name="usertel" id="textfield4" class="txt"/></td>
                                </tr>
                                <tr>
                                    <td height="50" align="right" valign="middle">上传头像：</td>
                                    <td width="390" height="50">
                                        <input type="file" name="headerimage" id="textfield5" class="txt"/></td>
                                </tr>
                                <tr>
                                    <td height="50" colspan="2" align="center" valign="middle"><input type="submit" name="button" id="button" value="立即注册" /></td>
                                </tr>
                           
                    </table></td>
                </tr>
        </table></td>
    </tr>
</table>
<div id="footer">&copy;2015 "非常5+1"组实习结业设计</div>
 </form>
</body>
</html>
